package com.mzm.ui.admin;

import com.mzm.api.MediaInfoDto;

import dnl.util.ui.OkDialog;

/**
 * 
 * @author daniel
 */
public class MediaInfoEditingDialog extends OkDialog {

	private MediaInfoEditorPanel editorPanel = new MediaInfoEditorPanel();

	/**
	 * Creates new form RecommendationEditingDialog
	 */
	public MediaInfoEditingDialog(java.awt.Frame parent, boolean modal) {
		super(parent, modal);
		initComponents();
		jScrollPane1.setViewportView(editorPanel);

	}

	public MediaInfoDto getMediaInfoDto() {
		return editorPanel.getMediaInfoDto();
	}
	
	/**
	 * Clears the text box.
	 */
	public void clear(){
		editorPanel.clear();
	}

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed"
	// <editor-fold defaultstate="collapsed"
	// desc="Generated Code">//GEN-BEGIN:initComponents
	private void initComponents() {

		jScrollPane1 = new javax.swing.JScrollPane();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
		getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);

		pack();
	}// </editor-fold>//GEN-END:initComponents

	// Variables declaration - do not modify//GEN-BEGIN:variables
	private javax.swing.JScrollPane jScrollPane1;
	// End of variables declaration//GEN-END:variables
}
